package myQueue;

public class Test {
    public static void main(String[] args) {
        MyQueue myQueue = new MyQueue();

        System.out.println("进行入队操作：");
        myQueue.offer(2);
        myQueue.offer(8);
        myQueue.offer(1998);
        /*System.out.println("测试打印（实际没有该方法：");
        myQueue.print();*/
        System.out.println("有效长度为：");
        System.out.println(myQueue.size());

        System.out.println("进行队头的元素查看：");
        System.out.println(myQueue.peek());
        System.out.println("有效长度为：");
        System.out.println(myQueue.size());

        System.out.println("拿到并删除对头元素：（出队操作）");
        System.out.println(myQueue.poll());
        System.out.println("有效长度为：");
        System.out.println(myQueue.size());

        System.out.println("进行判空操作：");
        System.out.println(myQueue.isEmpty());
    }
}
